<template>
  <WeatherHeader :addcity="addcity" @is-show="IsShow" />
  <RouterView @add-city="addCity" :isShow="isShow"/>
</template>

<script setup>
import WeatherHeader from '@/components/WeatherHeader.vue';
import { ref } from 'vue';

const addcity = ref({});
const addCity = (city) => {
  addcity.value = city;
};

const isShow = ref(false);

const IsShow = (value) => {
  isShow.value = value;
};

</script>

<style scoped></style>
